package com.lzc.zhxy.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.lzc.zhxy.pojo.LoginForm;
import com.lzc.zhxy.pojo.TbAdmin;
import org.springframework.boot.autoconfigure.kafka.KafkaProperties;


/**
* @author 82389
* @description 针对表【tb_admin】的数据库操作Service
* @createDate 2022-04-16 18:00:49
*/
public interface TbAdminService extends IService<TbAdmin> {

    /**
     * 登陆方法
     * @param loginForm
     * @return
     */
    TbAdmin login(LoginForm loginForm);

    /**
     * 通过id查找用户
     * @param intValue
     * @return
     */
    TbAdmin getAdminById(int intValue);

    /**
     * 分页获取所有Admin信息【带条件】
     * @param pageParam
     * @param adminName
     * @return
     */
    IPage<TbAdmin> getAdmins(Page<TbAdmin> pageParam, String adminName);
}
